<?php

namespace Data;

use \Lib\Db\Mysql as Mysql;

class Base extends Mysql {

    private $redis;

    const IS_YES = 1;

    const IS_NO = 0;

    const SEX_BOY = 1;

    const SEX_GIRL = 2;

    const TYPE_CONSTRUCTION = 1;

    const TYPE_DESIGN_CONSTRUCTION = 2;

    const TYPE_OUT_SC = 3;

    /**
     * @return \Lib\Db\Redis
     */
    protected function getRedis() {
        if ($this->redis) {
            return $this->redis;
        }
        $this->redis = \Lib\Db\Redis::instance();
        return $this->redis;
    }
}